package com.vcaresolution.logistic.form;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;

import com.vcaresolution.logistic.pojo.Department;

/**
 * <code>DepartmentForm</code> represents Department managemnet related fields.
 *
 * @author Snehal Shah
 * @version 1.0
 * @since ShipSoft 1.0
 */
@Component
public class DepartmentForm extends Department{

	private static final long serialVersionUID = 1L;
	
	private Integer branchId;
	
	private Integer companyId;
	
	@Override
	@NotEmpty
	public String getDepartmentname() {
		return super.getDepartmentname();
	}
	
	@Override
	public int getIsactive() {
		return super.getIsactive();
	}
	
	@Override
	@NotEmpty
	public String getDepartmentinfo() {
		return super.getDepartmentinfo();
	}

	/**
	 * @return the branchId
	 */
	public Integer getBranchId() {
		return branchId;
	}

	/**
	 * @param branchId the branchId to set
	 */
	public void setBranchId(Integer branchId) {
		this.branchId = branchId;
	}

	/**
	 * @return the companyId
	 */
	public Integer getCompanyId() {
		return companyId;
	}

	/**
	 * @param companyId the companyId to set
	 */
	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	
}
